<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
 if(session.getAttribute("username")==null||
         session.getAttribute("username").equals("")){
  out.println("<script type='text/javascript'>  alert('请先登录！'); " +
          "location.href='login.jsp'; </script>");
}
 %>
